<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        button {
            display: block;
            width: 80%;
            height: 50px;
            margin: 20px auto 0 auto;
            padding: 10px;
            border-radius: 3px;
            border: 0;
            background-color: #e2e2e2;
        }

        button:focus {
            background-color: #2277DA;
            color: white;
        }

        .title {
            width: 100%;
            height: 60px;
            background-color: #2277DA;
            text-align: center;
        }

        .title h2 {
            color: white;
            line-height: 60px;
        }

        ul {
            list-style: none;
        }

        .dialog {
            position: absolute;
            width: 200px;
            height: 200px;

            top: 50%;
            left: 50%;

            margin-left: -100px;
            margin-right: -100px;

            background-color: white;
            border-radius: 3px;

            z-index: 100;

            display: none;
        }

        .black {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            background-color: rgba(0, 0, 0, .2);
            z-index: 10;
            display: none;
        }

        .black img {
            position: absolute;
            width: 50px;
            height: 50px;
            bottom: 30%;
            left: 50%;
            margin-left: -25px;
        }

        .img {
            width: 180px;
            height: 180px;
            margin: 10px;
            border-radius: 5px;
        }
    </style>
</head>
<body>
<div>
    <div class="title">
        <h2>123123123213</h2>
    </div>

    <ul>
        <li>
            <button class="btn">xxx月大23213</button>
            <button class="btn">xxx月大23213</button>
            <button class="btn">xxx月大23213</button>
            <button class="btn">xxx月大23213</button>
        </li>
    </ul>

    <div class="dialog">
        <img class="img" src="./static/test.png">
    </div>
    <div class="black">
        <img class="close" src="./static/close.png">
    </div>
</div>
<script src="http://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
<script>
    $(function () {

        $('.btn').click(function () {
            $('.dialog').show();
            $('.black').show();
        });

        $('.black').click(function () {
            $('.dialog').hide();
            $('.black').hide();
        });

        $('.close').click(function () {
            $('.dialog').hide();
            $('.black').hide();
        })
    })
</script>
</body>
</html>